package com.zhangy.service;
import com.zhangy.mapper.ShangpuMapper;
import com.zhangy.model.Shangpu;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ShangpuServiceImpl implements ShangpuService{
    @Autowired
    private ShangpuMapper shangpuMapper ;

    public void addShangpu(Shangpu shangpu) {
        shangpuMapper.addShangpu(shangpu);
    }


    public void delShangpu(List arrList) {
        shangpuMapper.delShangpu(arrList);
    }


    public Shangpu selShangpuById(int spid) {
        return shangpuMapper.selShangpuById(spid);
    }


    public void updateShangpu(Shangpu shangpu) {
        shangpuMapper.updateShangpu(shangpu);
    }


    public List<Shangpu> selectShangpuList() {
        return shangpuMapper.selectShangpuList();
    }
}
